package com.etone.smartAudit.dto.toolCase;

import com.etone.smartAudit.dto.FileDTO;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.List;

/**
 * @author: 蒋学伟
 * @create: 2020-07-08 16:13:37
 * @Description 工具案例
 */
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Data
@ApiModel(value = "工具案例表单")
public class ToolCaseDTO implements Serializable {

    @ApiModelProperty("案例名称")
    @NotEmpty
    private String name;

    @ApiModelProperty("案例文件")
    private List<FileDTO> files;

    @ApiModelProperty("案例封面（暂时去掉）")
    @JsonIgnore
    private FileDTO cover;

    @ApiModelProperty("案例备注｜简介")
    @NotEmpty
    private String remark;

}
